//
//  FingerprintLock.h
//  ERP
//
//  Created by QA on 15/9/15.
//  Copyright (c) 2015年 ShangHai HaoLei Software Technology Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^PasscodeCompletionBlock)(BOOL success, NSError *error);

typedef NS_ENUM(NSInteger, DMUnlockErrorCodes)
{
    DMErrorUnlocking = -1,
};

@interface FingerprintLock : NSObject

/**
 *  show verification Passcode View
 */
+ (void)showPasscodeCompletion:(PasscodeCompletionBlock)completion;
+ (void)showPasscodeCompletion:(PasscodeCompletionBlock)completion localizedReason:(NSString*)title;
+ (void)verificationPasscodeCompletion:(PasscodeCompletionBlock)completion;

+ (BOOL)openPasscode;

/**
 *  Remove the passcode from the keychain.
 */
+ (void)removePasscode;

/**
 *  Check if a passcode is already set.
 *
 *  @return BOOL indicating if a passcode is set
 */
+ (BOOL)isPasscodeSet;

/**
 *  Is Support Touch ID
 */
+ (BOOL)isSupportTouchID;

@end
